/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wargame.entity;

import module.Utility_Function;

/**
 *
 * @author stanley.2007
 */
public class Transaction {

    private int transaction_id;
    private int player_id;
    private int debit_amount;
    private String debit_string;
    private int credit_amount;
    private String credit_string;
    private String description;
    private int turn;
    private int balance;
    private String balance_string;

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }
    public String getBalance_string(){
        if(balance ==0 ) { return "-"; }
        return Utility_Function.formatCurrency(balance);
    }

    public String getDebit_string(){
        if(debit_amount ==0 ) { return "-"; }
        return Utility_Function.formatCurrency(debit_amount);
    }

    public String getCredit_string(){
        if(credit_amount ==0 ) { return "-"; }
        return Utility_Function.formatCurrency(credit_amount);
    }

    public int getCredit_amount() {
        return credit_amount;
    }

    public void setCredit_amount(int credit_amount) {
        this.credit_amount = credit_amount;
    }

    public int getDebit_amount() {
        return debit_amount;
    }

    public void setDebit_amount(int debit_amount) {
        this.debit_amount = debit_amount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getPlayer_id() {
        return player_id;
    }

    public void setPlayer_id(int player_id) {
        this.player_id = player_id;
    }

    public int getTransaction_id() {
        return transaction_id;
    }

    public void setTransaction_id(int transaction_id) {
        this.transaction_id = transaction_id;
    }

    public int getTurn() {
        return turn;
    }

    public void setTurn(int turn) {
        this.turn = turn;
    }
    
    
}
